
import config from '@/config/config.js';
import axios from "axios";

const dictRequest = {
    loadDictDataList(dictId,callback){
        let url = config.sysBaseUrl + "/dict/getDataList?dictId=" + dictId
        axios.get(url,{
            headers:{
                token:localStorage.getItem("token")
            }
        }).then(res=>{
            callback(res.data)
        })
    }
}
export default dictRequest;